<?php
class indexControl extends commonControl{
//显示的主页框架，除欢迎界面以外；
    function index(){
    	$this->display();
    }
//显示欢迎界面；
    function welcome(){
    	$db = M("user");
    	$name = $_SESSION["username"];
    	$res = $db -> field("logintime,loginip") -> findall(array("username"=>$name));
    	$this->assign("time",$res[0][logintime]);
    	$this->assign("ip",$res[0][loginip]);
    	$this->display();
    }
}